import request from '@/utils/request'

// 查询试题答案列表
export function listResult(query) {
  return request({
    url: '/exam/result/list',
    method: 'get',
    params: query
  })
}

// 查询试题答案详细
export function getResult(id) {
  return request({
    url: '/exam/result/' + id,
    method: 'get'
  })
}

// 新增试题答案
export function addResult(data) {
  return request({
    url: '/exam/result',
    method: 'post',
    data: data
  })
}

// 修改试题答案
export function updateResult(data) {
  return request({
    url: '/exam/result',
    method: 'put',
    data: data
  })
}

// 删除试题答案
export function delResult(id) {
  return request({
    url: '/exam/result/' + id,
    method: 'delete'
  })
}
